﻿using Common.Infrastructure;
using System;

namespace StatsData.Data.Entity
{
    /// <summary>
    /// KPI统计表 包含OQC, FPY，UPPH, 产能, 人工制造率, 设备制造率
    /// </summary>
    public class t_kpi_statis : EntityBase
    {
        /// <summary>
        /// 日期 当月一号
        /// </summary>
        public DateTime curr_date { get; set; }

        /// <summary>
        /// 模块标题 OQC FPY UPPH 产能
        /// </summary>
        public string title { get; set; }

        public string title_en { get; set; }

        public string title_th { get; set; }

        /// <summary>
        /// 日期维度 月度 WK1 WK2 WK3 WK4
        /// </summary>
        public string date_type { get; set; }

        public string date_type_en { get; set; }

        public string date_type_th { get; set; }

        public string line_code { get; set; }

        public string line_name { get; set; }

        public string line_name_en { get; set; }

        public string line_name_th { get; set; }

        /// <summary>
        /// 累计值
        /// </summary>
        public decimal actual { get; set; }

        /// <summary>
        /// 目标值套数
        /// </summary>
        public decimal target { get; set; }

        /// <summary>
        /// 产能目标 pcs数量
        /// </summary>
        public decimal target_pcs_qty { get; set; }

        /// <summary>
        /// 检验合格批次
        /// </summary>
        public decimal checked_batch_ok_qty { get; set; }

        /// <summary>
        /// 检验批次
        /// </summary>
        public decimal checked_batch_qty { get; set; }


        /// <summary>
        /// 总投产数据
        /// </summary>
        public decimal total_booking_qty { get; set; }

        /// <summary>
        /// ok数量 总投产数量 - 不良数量
        /// </summary>
        public decimal ok_qty { get; set; }

        public string procedure_name { get; set; }

        public string procedure_name_en { get; set; }

        public string procedure_name_th { get; set; }

        /// <summary>
        /// 产出统计数
        /// </summary>
        public decimal finish_statis_qty { get; set; }

        /// <summary>
        /// 实际工时
        /// </summary>
        public decimal user_work_hour { get; set; }

        /// <summary>
        /// 类型 按日，按月，按周
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 时间, 按天汇总的时间
        /// </summary>
        public DateTime? time { get; set; }
    }
}
